package Book;

public class BookList {
    Book[] books = new Book[10];
    private int bookSize;
    public BookList() {
        books[0] = new Book("三国演义","罗贯中",19.9,"小说");
        books[1] = new Book("西游记","吴承恩",29.9,"小说");
        bookSize = 2;
    }

    public int getBookSize() {//获取书的数量
        return bookSize;
    }

    public void setBookSize(int bookSize) {//改变书的数量
        this.bookSize = bookSize;
    }
    public void putBook(int pos,Book book) {
        books[pos] = book;
    }
    public Book getBook(int i) {
        return books[i];
    }
}
